package edu.sctu.practice.class01.xuping.month09;

/**
 * Created by Administrator on 2015/9/24.
 */
public class CounterXu {
    int a;
    int b;
    int resultadd;
    int resultsubtract;
    int resultmultiply;
    float resultdivide;

    public CounterXu(int a, int b) {
        this.a = a;
        this.b = b;
    }

    public void add() {
        resultadd = a + b;
        System.out.println(resultadd);
    }

    public void subtract() {
        resultsubtract = a - b;
        System.out.println(resultsubtract);
    }

    public void multiply() {
        resultmultiply = a * b;
        System.out.println(resultmultiply);
    }

    public void divide() {
        resultdivide = a / b;
        System.out.println(resultdivide);
    }

    public static void main(String[] args) {

    }

}
